package com.example.leetcode.array;

import com.example.leetcode.array.common.ArrayUtils;

import java.util.Arrays;

class SolutionOffer21 {
    public int[] exchange(int[] nums) {
        return ArrayUtils.exchange(nums);
    }
}
public class offer21 {
    public static void main(String[] args) {
        SolutionOffer21 solutionOffer21 = new SolutionOffer21();
        int[] nums = {1,2,3,4};
        System.out.println(Arrays.toString(solutionOffer21.exchange(nums)));
    }
}
